<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{% load location_filter %}
<div>
<div class="searchkeywords">{{search_keywords}}</div>
<div class="searchresultname">碰头组</div>
{% if matched_groups_info %}
  {% for group_info in matched_groups_info %}
  <div class="searchresult">
    <div class="groupPicUrl"><img height='100' src='{{group_info.group.picture.url}}' /></div>
    <div class="groupName"><a href='/group/{{group_info.group.id}}'>{{group_info.group.name}}</a></div>
    <div class="groupDes">{{group_info.group.description}}</div>
    <div class="groupLocation">{{ group_info.group.location|code_to_location}}</div>
    <div class="groupMemCount">{{group_info.group.users.all|length}}/{{group_info.group.member_limit}}</div>
    <div class="groupFoundedDate">{{ group_info.group.found_date|date:"Y年m月d日"}}</div>
    <div class="groupEventCount">{{group_info.past_meetups|length}} 至今</div>
    {% if group_info.next_meetup %}
      <div class="groupNextMeetup">
      	<a href="/group/{{group_info.group.id}}/meetup/details/{{group_info.next_meetup.id}}">
      		<div class="SearchResultOthersInfoNextMeetupMonthAndDayAndDaytimeClass">
      			<div class="SearchResultOthersInfoNextMeetupMonthAndDayClass">
      				<span class="SearchResultOthersInfoNextMeetupMonthClass">
      					{{ group_info.next_meetup.time_from|date:"m月" }}
      				</span>
      				<span class="SearchResultOthersInfoNextMeetupDayClass">
      					{{ group_info.next_meetup.time_from|date:"d" }}
      				</span></div><div class="SearchResultOthersInfoNextMeetupDowClass">
      				<span class="dow">{{ group_info.next_meetup.time_from|date:"w" }}</span>
      			</div>
      		</div>
      	</a>
      </div>
    {% else %}
    <div class="groupNextMeetup"></div>
    {% endif %}
   </div>
  {% endfor %}
 {% endif %}
</div>
